
<div class="toolbox">
  <%= link_to "배너등록하기", new_admin_banner_path %>
</div>

<table class="banners">
  <thead>
    <tr>
      <th class="name">이름</th>
      <th class="desc">설명</th>
      <th class="image_url">이미지URL</th>
      <th class="landing_url">도착URL</th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @banners.each do |banner| %>
      <tr class="<%= cycle("odd", "even") %>">
        <td class="name"><%= banner.name %></td>
        <td class="desc"><%= banner.desc %></td>
        <td class="image_url"><%= display_banner_image(banner.image_url) %></td>
        <td class="landing_url"><%= banner.landing_url %></td>
        <td class="actions">
          <%= link_to "수정", edit_admin_banner_path(banner) %>
          <%= link_to "삭제", [:admin, banner], :method => :delete, :confirm => "sure?" %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

